//
//  XHF_Solution.m
//  haojia
//
//  Created by 徐宏飞 on 16/4/15.
//  Copyright © 2016年 徐宏飞. All rights reserved.
//

#import "XHF_Solution.h"

@interface XHF_Solution ()<UITableViewDataSource, UITableViewDelegate>

@end

@implementation XHF_Solution

+(XHF_Solution *)SolutionTableView{
    XHF_Solution *solutioTV = [[XHF_Solution alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
    solutioTV.delegate = solutioTV;
    solutioTV.dataSource = solutioTV;
    
    [solutioTV registerClass:[UITableViewCell class] forCellReuseIdentifier:@"solutioTVC"];
    
    return solutioTV;
    
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 50;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"solutioTVC"];
    
    
    cell.textLabel.text = [NSString stringWithFormat:@"%ld", indexPath.row];
    return cell;
    
}


@end
